def list_perms ( liwe, dct = None ):
	return [
			{ "value" : "admin", "label" : "Amministrazione" },
			{ "value" : "create", "label" : "creazione/modifica/cancellazione News" }
		]

def list_config ( liwe ):
	return [
			{ "name" : "mod_name", "label" : "Nome modulo", "value" : "News", "type" : "text", "maxlength" : "50", "mandatory" : True },
			{ "name" : "max_affinity", "label" : "Max news per affinit&agrave;", "value" : 5, "type" : "number", "maxlength" : "3", "mandatory" : True },
		]

def get_module_info ( liwe ):
	return {
		"dir_name" : "news",
		"file_name" : "news_class",
		"class_name" : "News"
	}

def get_cfg_data ( liwe ):
	return {
		"files" : [
			{ "name" : "site/modules/news/templates/news.txt", "mandatory" : False },
			{ "name" : "site/modules/news/cback/news.py", "mandatory" : False },
		]
	}
